import { get } from '@/axios'
const module = '/room'
const urls = {
	getRooms: module + '/getRooms'
}
const roomProps = {
	value: 'id',
	label: 'roomFloor'
}
function getRooms(bedId) {
	return new Promise(resolve => {
		get(urls.getRooms, { bedId }, content => {
			resolve(content)
		})
	})
}
export default {
	getRooms,
	roomProps
}